package com.lmt.feign;

import com.lmt.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description:
 * @Author: Amazing
 * @Date: 2022/8/1 15:11
 * @Version: 1.0
 */
@FeignClient(value = "user-server")
public interface UserFeignClient {

    @GetMapping("/getUserById/{id}")
    User getUserById(@PathVariable Long id);
}
